﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using BaiTu.Framework;
using BaiTu.Common;

namespace BaiTu.Common.Testing
{
    [TestClass]
    public class UnitTest1
    {
        [TestMethod]
        public void TestMethod1()
        {
            P p = new P()
            {
                age = "22",
                Name = "郭志奇"
            };
            M m = new M();
            p.ConvertTo(m);
            Assert.AreEqual("郭志奇", m.Name);

        }
    }

    public class P
    {
        public string Name { get; set; }

        public string age { get; set; }
    }
    public class M
    {
        public string Name { get; set; }

        public string Age { get; set; }
    }
}
